<h2 class="title3" style="width: 95%">
	配置页面管理	
	<%= link_to(image_tag("add.gif"),"/content/add_resource", :title => "添加配置页面") %>
</h2>
<table>
	<tr class="tab">
		<th width="40%" align="left">标题</th>
		<th width="300" align="center">创建时间</th>
		<th width="20%" align="right">操作</th>
	</tr>
 	<% @resources.each do |resource| %>
		<tr onmouseover="this.className='cur_tr';" onmouseout="this.className='';" class="">
			<td><%= link_to resource.title,:controller => :resources, :action => :show, :id => resource.id %></td>
		  <td><%= resource.created_at.strftime("%Y-%m-%d %H-%M-%S") %></td>
			<td align="right">
				<%= link_to image_tag("modify.gif"), :controller => :content, :action => :edit_resource,:id => resource.id %>
				<%= link_to image_tag("destroy.gif"), {:controller => :content, :action => :destroy_resource,:id => resource.id},{:confirm => "确定删除？", :title => "删除"} %>
			</td>
		</tr>
 	<% end %>
	<% if @resources.page_count > 1 %>
	<tr><td colspan="3"><%= will_paginate @resources %></td></tr>
	<% end %>
</table>
